package com.zhihesj.anan.system.service.impl;

import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhihesj.anan.system.entity.Dept;
import com.zhihesj.anan.system.entity.Users;
import com.zhihesj.anan.system.mapper.DeptMapper;
import com.zhihesj.anan.system.mapper.UsersMapper;
import com.zhihesj.anan.system.service.UsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhihesj.anan.system.vo.UserSelectVo;
import com.zhihesj.anan.system.vo.UsersVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author anan
 * @since 2020-07-06
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public List<UsersVo> selectPage(Map<String, Object> stringObjectMap) {
        return usersMapper.usersByMap(stringObjectMap);
    }

    @Override
    public List<UsersVo> getUserByDeptIds(String[] deptIds) {
        return usersMapper.getUserByDeptIds(deptIds);
    }
}
